﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XingFuStudio.Pioneer.Applications.City.Shop {
    /// <summary>
    /// 住房商店实体信息
    /// </summary>
    public class ResidenceShopInfo : ShopItem {
        /// <summary>
        /// 收租时间（以分钟为单位）
        /// </summary>
        public int RentTimes {
            get;
            set;
        }

        /// <summary>
        /// 租金
        /// </summary>
        public int Rent {
            get;
            set;
        }

        /// <summary>
        /// 初始化商品自身数据
        /// </summary>
        /// <param name="shopItems"></param>
        public override void InitShop(Dictionary<string, object> shopItems) {
            base.InitShop(shopItems);

            this.Price = Convert.ToInt32((string)shopItems["price"]);
            this.RentTimes = Convert.ToInt32((string)shopItems["rentmins"]);
            this.Rent = Convert.ToInt32((string)shopItems["rent"]);
        }
    }
}
